﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.EntityFrameworkCore.Design;
using Microsoft.EntityFrameworkCore;
using PMS.Domain.AggregatesModel.ProjectAggregate;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace PMS.Infrastructure.EntityConfigurations
{
    public class ProjectContributorEntityConfiguration : IEntityTypeConfiguration<ProjectContributor>
    {
        public void Configure(EntityTypeBuilder<ProjectContributor> builder)
        {
            builder.HasKey(o => o.Id);
            builder.Property(b => b.UserId).IsRequired();
            builder.Property(b => b.UserName).IsRequired();         
         
        }
    }
}
